package com.lst.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lst.api.vo.TaxInfoVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import com.lst.tools.mybatis.entity.DeleteBaseModel;

/**
 * 企业申请税务信息
 *
 * @author Frank
 * @date 2019-12-30 10:31:38
 * @version: V1.0
 */
@Data
@NoArgsConstructor
@TableName(value = "lst_tax_info")
@ApiModel(value = "企业申请税务信息")
public class TaxInfo extends DeleteBaseModel {

    public static final String APPLY_NO = "apply_no";
    public static final String PROMO_USER_ID = "promo_user_id";
    public static final String YEAR = "year";
    public static final String TAX_LEVEL = "tax_level";

    @ApiModelProperty(name = "applyNo", value = "申请编号", dataType = "String")
    @TableField(value = APPLY_NO)
    private String applyNo;

    @ApiModelProperty(name = "promoUserId", value = "推销员用户id", dataType = "Long")
    @TableField(value = PROMO_USER_ID)
    private Long promoUserId;

    @ApiModelProperty(name = "year", value = "年份", dataType = "String")
    @TableField(value = YEAR)
    private String year;

    @ApiModelProperty(name = "taxLevel", value = "税务等级", dataType = "String")
    @TableField(value = TAX_LEVEL)
    private String taxLevel;


    public TaxInfo(long userId, String applyNo, TaxInfoVo taxInfoVo) {
        this.applyNo = applyNo;
        this.promoUserId = userId;
        this.year = taxInfoVo.getYear();
        this.taxLevel = taxInfoVo.getTaxLevel();
    }
}